package com.brillilab.domain.enums.experiment;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ExperimentGroupEnum {
    SAMPLE("groupsamples",1),HANDLE("grouphandles",2),CHECK("grouptestings",3);
	public String name;
    private Integer value;
    
    public static String getKey(Integer value) {
        for (ExperimentGroupEnum p : ExperimentGroupEnum.values()) {
            if (p.getValue().equals(value)) {
                return p.name;
            }
        }
        return null;
    }
}
